﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:form action="/user" onsubmit="return validate(this);">
<html:hidden property="action" value="findpasswordstep2"/>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="50%">
<tr>
    <td colspan="2">
        <br>
        <div style="width:50%;text-align:left;font-size:16px;font-weight:bold;" align="center">
            找回密码
        </div>
        <br>
    </td>
</tr>
<tr class="even">
    <td align="right" height="20">找回密码方式&nbsp;</td>
    <td><html:radio property="findPasswordStyle" value="1"/>密码答案&nbsp;<html:radio property="findPasswordStyle" value="2"/>邮件</td>
</tr>
<tr class="even">
    <td align="right" height="20">登录名&nbsp;</td>
    <td><html:text property="loginName" size="17" maxlength="16"/>*</td>
</tr>
<tr class="even">
    <td align="right" height="20">验证码&nbsp;</td>
    <td>
        <html:text property="vc" size="8" maxlength="4" value=""/>*<img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0" align="absbottom"/>
    </td>
</tr>
<tr>
    <td height="25"></td>
    <td>
        <html:submit value="下一步"/>
    </td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="50%">
<tr>
    <td height="25"></td>
    <td>
        *项必须输入;<li>如果您选择“邮件”方式，只有注册的有效电子邮件地址才能收到包含密码的电子邮件。</li>
	<li>如果您选择“密码答案”方式，系统会显示您注册的【密码问题】并要求您输入注册的【密码答案】。</li>
    </td>
</tr>
</table>
</html:form>
<script type="text/javascript">
    function validate(pForm)
    {
        if(pForm.loginName.value == "")
        {
            alert("[用户名]必须填写");
            pForm.loginName.focus();
            return false;
        }
        if(pForm.vc.value == "")
        {
            alert("[验证码]必须填写");
            pForm.vc.focus();
            return false;
        }
        return true;
    }
</script>
